package org.zhadoop.stream.cql.semanticanalyzer.analyzecontext;

import java.util.List;

import org.zhadoop.stream.api.streams.Schema;
import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

import com.google.common.collect.Lists;

/**
 * select 语句的语义分析内容
 * 
 * @author zwd
 *
 */
public class SelectWithOutFromAnalyzeContext extends AnalyzeContext {

	private SelectClauseAnalyzeContext selectClauseContext;

	@Override
	public void setParseContext(ParseContext parseContext) {

	}

	@Override
	public void validateParseContext() throws SemanticAnalyzerException {

	}

	@Override
	public List<Schema> getCreatedSchemas() {
		List<Schema> schemas = Lists.newArrayList();
		schemas.addAll(selectClauseContext.getCreatedSchemas());
		return schemas;
	}

	@Override
	public String toString() {
		return "";
	}

	public SelectClauseAnalyzeContext getSelectClauseContext() {
		return selectClauseContext;
	}

	public void setSelectClauseContext(SelectClauseAnalyzeContext selectClauseContext) {
		this.selectClauseContext = selectClauseContext;
	}
	
}
